﻿//////////////////////////////////////////////////////////////////////////////////
//
// Project            : Tortoise Bugtraq Plugin
// Module:            : BugtraqPlugin
// Description        : Data provider factory class.
// 
// Repository         : $URL: http://bugtraqplugin.googlecode.com/svn/tags/BugTraqPlugin%20v.1.0.0.0/BugtraqPlugin/BugtraqPlugin/DataProvider/DataProviderFactory.cs $
// Last changed by    : $LastChangedBy: torsten.baer $
// Revision           : $LastChangedRevision: 5 $
// Last Changed       : $LastChangedDate: 2010-02-08 21:35:43 +0000 (Mon, 08 Feb 2010) $
// Author             : $Author: torsten.baer $
//
// Id:                : $Id: DataProviderFactory.cs 5 2010-02-08 21:35:43Z torsten.baer $
//
// Copyright:         (c) 2010 Torsten Bär
//
// Published under the MIT License. See license.txt or http://www.opensource.org/licenses/mit-license.php.
//
//////////////////////////////////////////////////////////////////////////////////


using BugtraqPlugin.DomainModel.Parameter;

namespace BugtraqPlugin.DataProvider
{
   /// <summary>
   /// Data provider factory class.
   /// </summary>
   public abstract class DataProviderFactory
   {
      #region Constructors

      /// <summary>
      /// Initializes a new instance of the <see cref="DataProviderFactory"/> class.
      /// </summary>
      protected DataProviderFactory()
      { }

      #endregion

      #region Methods

      /// <summary>
      /// Gets a data provider.
      /// </summary>
      /// <param name="parameter">The parameter.</param>
      /// <returns></returns>
      public static DataProvider GetProvider(PluginParameter parameter)
      {
         return new RedmineDataProvider(parameter);
      }

      #endregion
   }
}
